package com.itheima.d4_new;

import java.util.concurrent.Callable;

/**
 * 1.基于Demo03的需求定义的Callable类
 */
public class MyCallable implements Callable<String> {
    @Override
    public String call() throws Exception {
        //2.定义线程任务要执行的代码：文件上传
        for (int i = 0; i < 1000; i++) {
            System.out.println("文件上传：" + i);
        }

        return "上传完毕！";
    }
}
